#include "mysqlMgr.h"

mysqlMgr& mysqlMgr::GetInst()
{
	static mysqlMgr instance;
	return instance;
}

int mysqlMgr::RegUser(const std::string& name, const std::string& email, const std::string& pwd)
{
	return _dao.RegUser(name, email, pwd);
}

bool mysqlMgr::CheckEmail(const std::string& user, const std::string& email)
{
	return _dao.CheckEmail(user, email);
}

bool mysqlMgr::UpdatePwd(const std::string& name, const std::string& pwd)
{
	
		return _dao.UpdatePwd(name, pwd);
	
}

bool mysqlMgr::CheckPwd(const std::string& user, const std::string& pwd,UserInfo& userinfo)
{
	return _dao.CheckPwd(user, pwd,userinfo);
}

mysqlMgr::mysqlMgr()
{

}
